package com.cuotibao.zhuoxiao.basics.utils.glide;

import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;

/**
 * @author hdx on 2019/5/6.
 */
public class GlideOptions {
    public static RequestOptions getGlideRequestOptions() {
        return new RequestOptions()
                .centerCrop()
                .priority(Priority.HIGH)
                .format(DecodeFormat.PREFER_RGB_565)
                .diskCacheStrategy(DiskCacheStrategy.RESOURCE);
    }
}
